package com.helmlabs.grouper.finance.model;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;

import com.helmlabs.grouper.core.model.BaseObject;

@Entity
public class Billable extends BaseObject<Long> {
	
	private String description;
	private Float totalCost;
	private boolean paid;
	private Long billedToUserId;
	private List<LineItem> lineItems; 

	@OneToMany
	public List<LineItem> getLineItems() {
		return lineItems;
	}
	public void setLineItems(List<LineItem> lineItems) {
		this.lineItems = lineItems;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Float getTotalCost() {
		return totalCost;
	}
	public void setTotalCost(Float totalCost) {
		this.totalCost = totalCost;
	}
	public Long getBilledToUserId() {
		return billedToUserId;
	}
	public void setBilledToUserId(Long billedToUserId) {
		this.billedToUserId = billedToUserId;
	}
	public boolean isPaid() {
		return paid;
	}
	public void setPaid(boolean paid) {
		this.paid = paid;
	}

}
